]> dgit.raspbian.org Git - gnome-shell.git/commit
windowManager: Expose WorkspaceTracker blockUpdates & unblockUpdates
authorTony Chen <contact@tycchen.com>
Tue, 2 Jun 2026 20:16:49 +0000 (16:16 -0400)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 29 Jun 2026 17:47:14 +0000 (19:47 +0200)
commitad781ad85d98686ea0e00595cb60e617b23bb625
treed73f0714a761e1b7806100a7a351ef475618709a
parent765aebe9238dcd646a6c6f3f5a23d1af6f87324c
windowManager: Expose WorkspaceTracker blockUpdates & unblockUpdates

Update blocking is currently only used by the workspace switcher popup,
but the workspace animation needs to do the same.

To prepare for that, expose block workspace updates on WindowManager
to make it available outside the module.

Use a counter to track block/unblock calls and avoid contention over the
_pauseWorkspaceCheck boolean inside WorkspaceTracker.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4014>
(cherry picked from commit 217b1502057a78b13a3a5dd73a8b202e81aec127)
js/ui/windowManager.js